triggers: Test for gconftool-2
authorColin Walters <walters@verbum.org>
Fri, 13 Apr 2012 20:11:03 +0000 (16:11 -0400)
committerColin Walters <walters@verbum.org>
Fri, 13 Apr 2012 20:11:03 +0000 (16:11 -0400)
This was done for the rest of the triggers.

src/triggers/triggers.d/0050gconf.trigger

index 8b4df908ef04c45e32ca905f39b688f4c7c6cc95..03b73fb730ecb9edd6732f78c6364b796f05b364 100755 (executable)
 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 # Boston, MA 02111-1307, USA.
 
-# IfExecutable: gconftool-2
-# LiteralMatch: /etc/gconf
-
-GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
-export GCONF_CONFIG_SOURCE
-
-for f in /etc/gconf/schemas/*.schemas; do
-    gconftool-2 --makefile-install-rule "$f"
-done
+if test -x "$(which gconftool-2 2>/dev/null)"; then
+    GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+    export GCONF_CONFIG_SOURCE
+    for f in /etc/gconf/schemas/*.schemas; do
+       gconftool-2 --makefile-install-rule "$f"
+    done
+fi